/* 
 * File:   MessageRecord.cpp
 * Author: liuyi
 * 
 * Created on July 21, 2009, 2:28 PM
 */

#include "Log.h"

void Log::log(string message, TYPE type) {
    switch (type) {
        case NON:
            break;

        case INFO:
            cout << "INFO: ";
            break;

        case WARN:
            cout << "WARN: ";
            break;

        case ERROR:
            cout << "ERROR: ";
            break;

        default:
            cout << "Invalid type: " << type << endl;
            return;
    }

    cout << message << endl;
}
